package com.zhai.boot.mapper;

import com.zhai.boot.domain.table.DemoTable;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @package: com.zhai.boot.mapper
 * @project-name: zhai-boot
 * @description: demo 映射
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-7-20 17:15
 */
@Mapper
public interface DemoMapper {
    /**
     * 通用
     */
    DemoTable getById(String id);

    DemoTable getByCode(String code);

    DemoTable getByMain(DemoTable table);

    List<DemoTable> getListByMain(DemoTable table);

    Integer insert(DemoTable table);

    Integer update(DemoTable table);

    Integer delete(DemoTable table);
}
